<%@ page language="java" contentType="text/html; charset=gbk" pageEncoding="gbk"%>
<%@ page language="java" import="java.util.List;"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>查询的标题</title>
<script type="text/javascript">

function queryContent(objTD){

var title=objTD.parentNode.childNodes[0].innerHTML;
 document.getElementById("title").value=title;
fm2.submit();


 }

 </script> 
</head>

<body>
<form action="<%= request.getContextPath() %>/QueryContentAction" method="get" name="fm2">
<table border="1px">
    <% 
      List list = (List)request.getAttribute("list");
      for(int i=0;i<list.size();i++){
        String name = (String)list.get(i);
     %>
     
    <tr>
      <td ><%=i+1%></td>    
      <td><a onclick="queryContent(this)" href="#"><%=name%></td>
    </tr>
    <%}%>
    
    <td>
   <input type="hidden"  id="title"  name="title" value=""/>

</table>

   <tr>
   <td>
      &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp; &nbsp;  &nbsp;  &nbsp;
        &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp; &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp; 
         &nbsp;  &nbsp;  &nbsp;&nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp; 
          &nbsp;&nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;
          <input  type="button"   value="返回"    onclick="javaScript:history.go(-1);"/>
   </td>
   </tr>

</form>
</body>
</html>